home *** CD-ROM | disk | FTP | other *** search
/ Champak 120 / Vol 120.iso / games / asteroid.swf / scripts / __Packages / com / evilfree / astroidsRevenge / ShipMineAlly.as < prev    next >
Text File  |  2010-11-09  |  7KB  |  212 lines

  1. function ┬º\x01\x02┬º()
  2. {
  3.    return 2623 % 511 * 5;
  4. }
  5. var ┬º\x01┬º = 203 + "\x01\x02"();
  6. while(true)
  7. {
  8.    if(eval("\x01") == 543)
  9.    {
  10.       set("\x01",eval("\x01") + 65);
  11.       ┬º┬ºpush(true);
  12.    }
  13.    else if(eval("\x01") == 608)
  14.    {
  15.       set("\x01",eval("\x01") - 216);
  16.       if(function ┬º\x01\x02┬º()
  17.       {
  18.          return 2623 % 511 * 5;
  19.       })
  20.       {
  21.          set("\x01",eval("\x01") + 157);
  22.       }
  23.    }
  24.    else if(eval("\x01") == 329)
  25.    {
  26.       set("\x01",eval("\x01") - 263);
  27.       ┬º┬ºpush("\x0f");
  28.       ┬º┬ºpush(1);
  29.    }
  30.    else
  31.    {
  32.       if(eval("\x01") == 392)
  33.       {
  34.          set("\x01",eval("\x01") + 157);
  35.          set(function ┬º\x01\x02┬º()
  36.          {
  37.             return 2623 % 511 * 5;
  38.          },eval("\x01") + 457);
  39.          break;
  40.       }
  41.       if(eval("\x01") == 195)
  42.       {
  43.          set("\x01",eval("\x01") + 569);
  44.          ┬º┬ºpush("\x0f");
  45.       }
  46.       else if(eval("\x01") == 800)
  47.       {
  48.          set("\x01",eval("\x01") - 464);
  49.          if(function ┬º\x01\x02┬º()
  50.          {
  51.             return 2623 % 511 * 5;
  52.          })
  53.          {
  54.             set("\x01",eval("\x01") + 336);
  55.          }
  56.       }
  57.       else if(eval("\x01") == 967)
  58.       {
  59.          set("\x01",eval("\x01") - 167);
  60.          ┬º┬ºpush(!function ┬º\x01\x02┬º()
  61.          {
  62.             return 2623 % 511 * 5;
  63.          });
  64.       }
  65.       else if(eval("\x01") == 764)
  66.       {
  67.          set("\x01",eval("\x01") + 203);
  68.          ┬º┬ºpush(eval(function ┬º\x01\x02┬º()
  69.          {
  70.             return 2623 % 511 * 5;
  71.          }));
  72.       }
  73.       else if(eval("\x01") == 549)
  74.       {
  75.          set("\x01",eval("\x01") - 220);
  76.       }
  77.       else
  78.       {
  79.          if(eval("\x01") == 672)
  80.          {
  81.             set("\x01",eval("\x01") + 68);
  82.             if(!_global.com)
  83.             {
  84.                _global.com = new Object();
  85.             }
  86.             function ┬º\x01\x02┬º()
  87.             {
  88.                return 2623 % 511 * 5;
  89.             }
  90.             if(!_global.com.evilfree)
  91.             {
  92.                _global.com.evilfree = new Object();
  93.             }
  94.             ┬º┬ºpop();
  95.             if(!_global.com.evilfree.astroidsRevenge)
  96.             {
  97.                _global.com.evilfree.astroidsRevenge = new Object();
  98.             }
  99.             ┬º┬ºpop();
  100.             if(!_global.com.evilfree.astroidsRevenge.ShipMineAlly)
  101.             {
  102.                com.evilfree.astroidsRevenge.ShipMineAlly extends com.evilfree.astroidsRevenge.ShipMine;
  103.                var _loc2_ = com.evilfree.astroidsRevenge.ShipMineAlly = function(m, target_mc, s)
  104.                {
  105.                   super(m,target_mc,s);
  106.                   this.mineType = "ally";
  107.                }.prototype;
  108.                _loc2_.place_mc = function(target_mc)
  109.                {
  110.                   this.myDepth = target_mc.getNextHighestDepth();
  111.                   this.my_mc = target_mc.attachMovie("mineShipAlly","ship" + this.myDepth,this.myDepth);
  112.                };
  113.                _loc2_.avoidThese = function(asteroidList)
  114.                {
  115.                   if(asteroidList == undefined)
  116.                   {
  117.                      return undefined;
  118.                   }
  119.                   var _loc12_ = asteroidList.length;
  120.                   var _loc4_ = 0;
  121.                   while(_loc4_ < _loc12_)
  122.                   {
  123.                      var _loc2_ = asteroidList[_loc4_];
  124.                      var _loc5_ = this.getTargetXDistance(_loc2_);
  125.                      var _loc6_ = this.getTargetYDistance(_loc2_);
  126.                      var _loc3_ = Math.sqrt(_loc5_ * _loc5_ + _loc6_ * _loc6_);
  127.                      if(_loc3_ < _loc2_.getSize() / 2 + this.size / 2)
  128.                      {
  129.                         if(_loc2_ != this.main.getPlayerAsteroid())
  130.                         {
  131.                            _loc2_.bulletHitMe(this.size * 5);
  132.                         }
  133.                         this.blowUp();
  134.                         return 1;
  135.                      }
  136.                      if(_loc3_ < 150)
  137.                      {
  138.                         var _loc8_ = this.myAtan(_loc6_,_loc5_);
  139.                         var _loc10_ = this.myCos(_loc8_);
  140.                         var _loc9_ = this.mySin(_loc8_);
  141.                         var _loc7_ = (150 - _loc3_) / 150;
  142.                         this.xSpeed += 2 * _loc10_ * _loc7_;
  143.                         this.ySpeed += 2 * _loc9_ * _loc7_;
  144.                      }
  145.                      _loc4_ = _loc4_ + 1;
  146.                   }
  147.                   return 0;
  148.                };
  149.                _loc2_.damageThese = function(asteroidList)
  150.                {
  151.                   if(asteroidList == undefined)
  152.                   {
  153.                      return undefined;
  154.                   }
  155.                   var _loc10_ = asteroidList.length;
  156.                   var _loc4_ = 0;
  157.                   while(_loc4_ < _loc10_)
  158.                   {
  159.                      var _loc2_ = asteroidList[_loc4_];
  160.                      var _loc6_ = this.getTargetXDistance(_loc2_);
  161.                      var _loc7_ = this.getTargetYDistance(_loc2_);
  162.                      var _loc5_ = Math.sqrt(_loc6_ * _loc6_ + _loc7_ * _loc7_);
  163.                      var _loc3_ = this.size * 2 + _loc2_.getSize();
  164.                      if(_loc5_ < _loc3_)
  165.                      {
  166.                         var _loc8_ = (_loc3_ - _loc5_) / _loc3_;
  167.                         if(_loc2_ != this.main.getPlayerAsteroid())
  168.                         {
  169.                            _loc2_.bulletHitMe(this.size * 2 * _loc8_);
  170.                         }
  171.                      }
  172.                      _loc4_ = _loc4_ + 1;
  173.                   }
  174.                   return 0;
  175.                };
  176.                ┬º┬ºpush(ASSetPropFlags(com.evilfree.astroidsRevenge.ShipMineAlly.prototype,null,1));
  177.             }
  178.             ┬º┬ºpop();
  179.             break;
  180.          }
  181.          if(eval("\x01") == 336)
  182.          {
  183.             set("\x01",eval("\x01") + 336);
  184.          }
  185.          else
  186.          {
  187.             if(eval("\x01") == 740)
  188.             {
  189.                set("\x01",eval("\x01") - 740);
  190.                break;
  191.             }
  192.             if(eval("\x01") == 436)
  193.             {
  194.                set("\x01",eval("\x01") - 107);
  195.             }
  196.             else
  197.             {
  198.                if(eval("\x01") != 66)
  199.                {
  200.                   break;
  201.                }
  202.                set("\x01",eval("\x01") + 129);
  203.                var ┬º┬ºpop() = function ┬º\x01\x02┬º()
  204.                {
  205.                   return 2623 % 511 * 5;
  206.                };
  207.             }
  208.          }
  209.       }
  210.    }
  211. }
  212.